<template>
  <div class="navbar">
    <div class="article-nav-wrapper">
      <nav class="article-nav container">
        <a class="nav-item nav-product" title="产品" href="product.html">产品</a>
        <a class="nav-item nav-design" href="design.html">设计</a>
        <a class="nav-item nav-develop" href="develop.html">开发</a>
        <a class="nav-item nav-test" href="test.html">测试</a>
        <a class="nav-item nav-operate" href="operation.html">运营</a>
      </nav>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'navbar',
    data () {
      return {}
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .article-nav-wrapper {
    width: 100%;
    height: 64px;
    background: #fff;
    margin: 0 auto;
  }

  .article-nav {
    padding: 10px 15px;
  }

  .nav-item {
    display: inline-block;
    width: calc((100% - 139px) / 5);
    line-height: 44px;
    text-align: center;
    border-radius: 4px;
    font-size: 16px;
    font-family: sc-bold,"Microsoft YaHei";
    transition: all .3s ease-in-out;
  }

  .nav-item:hover, .nav-item:focus, .nav-item:active {
    color: #fff;
  }

  .nav-product {
    background: #f9f5ff;
    color: #c79efe;
    margin-right: 30px;
  }

  .nav-design {
    background: #edfaf3;
    color: #50cf8e;
    margin-right: 30px;
  }

  .nav-develop {
    background: #ffefd5;
    color: #febb50;
    margin-right: 30px;
  }

  .nav-test {
    background: #f0f7fe;
    color: #6dacf4;
    margin-right: 30px;
  }

  .nav-operate {
    background: #fef4f2;
    color: #f69581;
  }

  .nav-product:hover, .nav-product:focus, .nav-product:active {
    background: #c79efe;
  }

  .nav-design:hover, .nav-design:focus, .nav-design:active {
    background: #50cf8e;
  }

  .nav-develop:hover, .nav-develop:focus, .nav-develop:active {
    background: #febb50;
  }

  .nav-test:hover, .nav-test:focus, .nav-test:active {
    background: #6dacf4;
  }

  .nav-operate:hover, .nav-operate:focus, .nav-operate:active {
    background: #f69581;
  }

  /*干货媒体查询*/
  @media screen and (max-width: 768px) {
    .nav-item {
      width: calc((100% - 16px) / 5);
    }

    .nav-product {
      margin-right: 0;
    }

    .nav-design {
      margin-right: 0;
    }

    .nav-develop {
      margin-right: 0;
    }

    .nav-test {
      margin-right: 0;
    }
  }
</style>
